package com.blb.community_admin.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author hkp
 * 字典数据实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysDictData {
    @ExcelProperty("字典编码")
    @TableId(type = IdType.AUTO)
    private long dictCode;
    @ExcelProperty("字典排序")
    private long dictSort;
    @ExcelProperty("字典标签")
    private String dictLabel;
    @ExcelProperty("字典键值")
    private String dictValue;
    @ExcelProperty("字典类型")
    private String dictType;
    @ExcelProperty("样式属性（其他样式扩展）")
    private String cssClass;
    @ExcelProperty("表格回显样式")
    private String listClass;
    @ExcelProperty("是否默认（Y是 N否）")
    private String isDefault;
    @ExcelProperty("状态（0正常 1停用）")
    private String status;
    @ExcelProperty("创建者")
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
    @ExcelProperty("更新者")
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ExcelProperty("更新时间")
    private LocalDateTime updateTime;
    @ExcelProperty("备注")
    private String remark;

}
